package com.young.web;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {
    private Logger logger = Logger.getLogger(getClass());
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    @ResponseBody
    public String hello(@RequestParam String name) {
        logger.info("hello controller");
        return "Hello " + name;
    }

}
